#include <stdio.h>
#include <math.h>
#include <time.h>
void main()
{
	int a[100];
	float b[100];
	int MX1=0,MI1=a[0],i=0,j=0,mount1=0;
	float MX2=0.0,MI2=b[0],mount2=0.0;
	float AV1,AV2;
	srand((unsigned)time(NULL));
	for(;i<100;i++)
{
	a[i]=rand()%100;
	if(a[i]!=0)
	b[i]=1.0/a[i];
	else b[i]=0;
	mount1+=a[i];
	mount2+=b[i];
	if(MX1<a[i])
	MX1=a[i];
	else
	if(MX2<b[i])
	MX2=b[i];

	else
	if(MI1>a[i])
	MI1=a[i];
	else
	if(MI2>b[i])
	MI2=b[i];

}
	AV1=mount1/100;
	AV2=mount2/100.0;
	for(;j<100;j++)
{
	printf("%d %d %.2f\n",j+1,a[j],b[j]);


}	
	printf("MX %d %.2f\n",MX1,MX2);
	printf("MI %d %.2f\n",MI1,MI2);
	printf("AV %.1f %.2f\n",AV1,AV2);
}
